package com.kt.thread.demo.model;

/**
 * @Description:
 * @Author: kt
 * @CreateTime: 2021/3/13
 */
public abstract class AbstractCommand {
    private String key;
    private Command command;

    public AbstractCommand(String key) {
        this.key = key;
    }

    public abstract Command command();

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public Command getCommand() {
        return command;
    }

    public void setCommand(Command command) {
        this.command = command;
    }
}
